/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package egc.ui;


/**
 * @author AJF
 */
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class ExampleGameCanvasMidlet extends MIDlet {

    private Display display;

    public void startApp() {
        display = Display.getDisplay(this);
        ExampleGameCanvas gameCanvas = new ExampleGameCanvas();
        gameCanvas.start();
        display.setCurrent(gameCanvas);
    }

    public Display getDisplay() {
        return display;
    }

    public void pauseApp() {
    }

    public void destroyApp(boolean unconditional) {
        exit();
    }

    public void exit() {
        System.gc();
        destroyApp(false);
        notifyDestroyed();
    }
}